Skip to content

Upgrade Clipper for Android 13+ (API 34) compatibility#16

Open
dqtz5vpvj9-create wants to merge 1 commit intomajido:masterfrom
dqtz5vpvj9-create:master
Open

Upgrade Clipper for Android 13+ (API 34) compatibility#16
dqtz5vpvj9-create wants to merge 1 commit intomajido:masterfrom
dqtz5vpvj9-create:master

Conversation

@dqtz5vpvj9-create
Copy link
Copy Markdown

Changes:

  • Upgrade targetSdkVersion to 34, minSdkVersion to 21
  • Replace deprecated IntentService with Foreground Service
  • Add notification channel for foreground service
  • Update ClipboardManager API from deprecated android.text to android.content
  • Use ClipData/setPrimaryClip instead of deprecated setText/getText
  • Add POST_NOTIFICATIONS and FOREGROUND_SERVICE permissions
  • Handle clipboard operations via Activity intents with focus awareness
  • Add Gradle build system alongside Maven
  • Update .gitignore for Gradle and temp files

Note: Android 13+ has system-level clipboard restrictions that may clear clipboard content after setPrimaryClip in some scenarios. For reliable clipboard access on Android 13+, consider using the ADBKeyBoard IME approach instead.

This solves issue #15

Changes:
- Upgrade targetSdkVersion to 34, minSdkVersion to 21
- Replace deprecated IntentService with Foreground Service
- Add notification channel for foreground service
- Update ClipboardManager API from deprecated android.text to android.content
- Use ClipData/setPrimaryClip instead of deprecated setText/getText
- Add POST_NOTIFICATIONS and FOREGROUND_SERVICE permissions
- Handle clipboard operations via Activity intents with focus awareness
- Add Gradle build system alongside Maven
- Update .gitignore for Gradle and temp files

Note: Android 13+ has system-level clipboard restrictions that may
clear clipboard content after setPrimaryClip in some scenarios.
For reliable clipboard access on Android 13+, consider using the
ADBKeyBoard IME approach instead.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants